package com.bestcem.xm.member.grpc.service.param.imports;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.bestcem.xm.member.grpc.service.param.PageParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 导入失败列表 参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/7/20
 */
@Getter
@Setter
public class ListImportDetailsParam {

    /**
     * 组织ID
     */
    @NotNull(message = "导入记录ID不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "导入记录ID格式错误")
    private String id;

    /**
     * 分页参数
     */
    @NotNull(message = "分页参数不能为空")
    @Valid
    private PageParam pageParam;


}
